from bs4 import BeautifulSoup
import requests
from urllib.request import urlopen
import os,re
url = 'https://wenku.baidu.com/view/59fcec214531b90d6c85ec3a87c24028905f8546.html'
http = requests.get(url).text      #这个解码网址没有解码出中文

# htp = urlopen('https://wenku.baidu.com/view/59fcec214531b90d6c85ec3a87c24028905f8546.html').read().decode('utf-8') # 解码网页
soup = BeautifulSoup(http,'lxml')
#print(soup)
img_ul = soup.find_all('div',{'class':'inner'})
print(soup)


#os.makedirs('./img/',exist_ok=True)  # 创建一个文件夹


